package com.hsp.Demo_05_extends;

public class Demo_02 {
    public static void main(String[] args) {
        B b = new B();
    }
}
class A{
    public A(){
        System.out.println("a");
    }
}
class B extends A{
    public B(){
        this("abc");
        System.out.println("b");
    }
    public B(String name){
        System.out.println("b name");
    }

}